from django.db import models
from .views import UpyunStorage


class StaticFile(models.Model):
    name = models.CharField(max_length=40, blank=True, verbose_name=u'名称')
    url = models.FileField(upload_to="staticfile", storage=UpyunStorage(), verbose_name=u'URL')

    create_time = models.DateTimeField(u'创建时间', auto_now_add=True)

